var mongoose =require('mongoose')

var Schema=mongoose.Schema

mongoose.connect('mongodb://localhost/myitcast')

 var modelSchema=new Schema({
       msg:{
         type:String
       },
       time:{
        type:String
       }
 })

 module.exports = mongoose.model('Msg', modelSchema)